<!-- 运行监控 -->

<template>
  <div class="Monitor">
    <MyMap />

    <MyTotal />

    <MyTree />

    <MyRecord />

    <MyTab />

    <MyModal />

    <MorePanel />

    <RightLight v-if="infoType === 'light'" />

    <RightWater v-if="infoType === 'water'" />

    <RightAir v-if="infoType === 'air'" />

    <Lift v-if="infoType === 'lift'" />
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import store from './store'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'Monitor',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixStore(store), CORE.mixLoop()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),

  /**
   * 本地方法 (轻量重要在前)
   */
  methods: {
    /**
     * 循环事件 (可覆盖)
     */
    toLoop() {
      const { startInfo, startList } = this
      startInfo()
      startList()
    },
  },
}
</script>

<style lang="scss">
@import './index.scss';
</style>
